# from django.test import TestCase
import datetime, time
# Create your tests here.
# from datetime import datetime, timezone, timedelta
#
# # 假设这是您要转换的日期时间对象（可以是任何时区的时间）
# # 这里我们假设它是UTC时间作为示例
# utc_time = datetime.utcnow()
#
# # 中国时区是UTC+8
# tz_offset = timedelta(hours=8)
#
# # 将UTC时间转换为UTC时间戳
# utc_timestamp = utc_time.timestamp()
#
# # 应用时区偏移量
# local_timestamp = utc_timestamp + tz_offset.total_seconds()
#
# # 将时间戳转换回datetime对象，并设置时区
# china_time = datetime.fromtimestamp(local_timestamp, timezone(tz_offset))
#
# # 格式化输出
# formatted_time = china_time
# print(formatted_time)


